﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Campus.Main.Basic.InsertValues
{
    public partial class CezaEkle : Default
    {
        public CezaEkle()
        {
            InitializeComponent();
        }
        public CezaEkle(List<string> item):base(item)
        {
            InitializeComponent();
            textBox1.Text = item[2];
            aToDb.AddItem(comboBox1,"ceza");
            comboBox1.SelectedValue = item[1];
            dateTimePicker1.Text = item[3];
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string ceza = Convert.ToString(comboBox1.SelectedValue);
            string date = dateTimePicker1.Text;
            aToDb.UpdateTableCeza(textBox1.Text,ceza,date,id);
            Close();
        }
        
    }
}
